home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / OvCata.swf / scripts / frame_3 / PlaceObject2_341_649 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-08-04  |  1.2 KB  |  65 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.bot4life < _root.levellife - _root.levellife / 3)
  3.    {
  4.       _root.nextbot3 = true;
  5.    }
  6.    if(_root.level1._x < -1060)
  7.    {
  8.       this._x = 1000;
  9.       this._visible = false;
  10.    }
  11.    if(_root.levmoveR)
  12.    {
  13.       this._x -= 3;
  14.    }
  15.    if(_root.levmoveL)
  16.    {
  17.       this._x += 3;
  18.    }
  19.    if(_root.jumpR)
  20.    {
  21.       this._x -= 6;
  22.    }
  23.    if(_root.jumpL)
  24.    {
  25.       this._x += 6;
  26.    }
  27.    if(_root.notarget4)
  28.    {
  29.       this._x -= 6;
  30.    }
  31.    if(this._x < 550)
  32.    {
  33.       _root.b4i._visible = true;
  34.    }
  35.    if(this._x < _root.sheep._x + 80)
  36.    {
  37.       _root.hitarea4 = true;
  38.       _root.notarget4 = false;
  39.    }
  40.    if(this._x > _root.sheep._x + 120)
  41.    {
  42.       _root.hitarea4 = false;
  43.       _root.notarget4 = true;
  44.    }
  45.    if(_root.hitarea4)
  46.    {
  47.       if(_root.hit4)
  48.       {
  49.          _root.hit4 = false;
  50.          _root.bot4life -= _root.levelhit;
  51.          if(_root.stronghit)
  52.          {
  53.             _root.bot4life -= 1;
  54.          }
  55.          if(_root.highkick)
  56.          {
  57.             _root.bot4life -= 100;
  58.             _root.highkick = false;
  59.             gotoAndPlay(47);
  60.          }
  61.          gotoAndPlay(21);
  62.       }
  63.    }
  64. }
  65.